package com.dazhi.show.story.tag.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dazhi.show.story.emperor.dao.Emperor;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.List;

//@JsonIgnoreProperties(value = "handler")
@TableName(value = "tag")
public class Tag {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "name")
    private String name;    // 标签名
    @TableField(exist = false)
    private List<Emperor> emperorList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Emperor> getEmperorList() {
        return emperorList;
    }

    public void setEmperorList(List<Emperor> emperorList) {
        this.emperorList = emperorList;
    }
}
